#import "HeatwaveCharismaController.h"
        
#import "HeatwaveCharismaModel.h"
#import "HeatwaveCharismaCell.h"
#import "Masonry.h"

@interface HeatwaveCharismaController () <UITableViewDataSource, UITableViewDelegate>

@property (nonatomic, strong) UITableView *glowTableView;
@property (nonatomic, strong) NSMutableArray *arcaneArr;

@end

@implementation HeatwaveCharismaController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    [self xylophoneLaughJoyousInitui];
	[self echoPulsePathwayfetchData];
}


- (UITableView *)figHandleTableView {
    if (!_glowTableView) {
        _glowTableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
        _glowTableView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
        _glowTableView.estimatedRowHeight = 0;
        _glowTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
        _glowTableView.contentInset = UIEdgeInsetsMake(16, 0, 16, 0);
        _glowTableView.delegate = self;
        _glowTableView.dataSource = self;
        _glowTableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
        _glowTableView.showsVerticalScrollIndicator = NO;
        _glowTableView.showsHorizontalScrollIndicator = NO;
        _glowTableView.backgroundColor = UIColor.clearColor;
    }
    return _glowTableView;
}

//: 懒加载数据模型数组
- (NSMutableArray *)arcaneArr {
	if (!_arcaneArr) {
		_arcaneArr = [NSMutableArray array];
	}
	return _arcaneArr;
}

//: 初始化页面UI
- (void)xylophoneLaughJoyousInitui {

	[self.view addSubview:self.glowTableView];
	[self.glowTableView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.leading.trailing.equalTo(self.view);
		make.top.equalTo(self.view);
		make.bottom.equalTo(self.view.mas_safeAreaLayoutGuideBottom);
	}];
}


//: 获取数据模型
- (void)echoPulsePathwayfetchData {
	
}

#pragma mark - UITableView DataSource 
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return self.arcaneArr.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    HeatwaveCharismaCell *vivid = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass([HeatwaveCharismaCell class])];
    if (vivid == nil) {
        vivid = [[HeatwaveCharismaCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:NSStringFromClass([HeatwaveCharismaCell class])];
    }
    vivid.selectionStyle = UITableViewCellSelectionStyleNone;
    
    return vivid;
}


#pragma mark - UITableView Delegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    // cell tap action
}


@end
